<template>
  <HeaderBar />
  <div class="content-warp">
    <img src="@assets/404.png" alt="" />
    <n-h1>404 资源不存在</n-h1>
    <n-button type="primary" @click="back"> 返回首页 </n-button>
  </div>
</template>

<script setup>
import HeaderBar from '@/components/common/SimpleHeaderbar.vue'
import { useRouter } from 'vue-router'

// 引入路由
const router = useRouter()

const back = () => {
  router.replace('/')
}
</script>

<style scoped>
.content-warp {
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 102px auto;
}
</style>
